package com.bilgeadam.hibernate.model.bll;

import com.bilgeadam.hibernate.model.dal.EmployeeDal;
import com.bilgeadam.hibernate.model.entity.Employee;

/**
 * 
 * @author Bora SAYINER
 * @since Nov 16, 2014 5:44:23 PM
 * @version 1.0.0
 */
public class EmployeeBll extends AbstractBll<Long, Employee> {

	public EmployeeBll() {
		super(new EmployeeDal());
	}

	@Override
	public boolean validateEntity(Employee e) {
		boolean result = false;
		if (e.getFirstName() != null && e.getFirstName().trim().length() >= 3) {
			result = true;
		}
		return result;
	}

}
